package com.library.domain;


import com.library.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 规则礼品关联表 mb_sign_rules_gift
 *
 * @author null
 * @date 2020-04-23
 * @blame Android Team
 */
public class MbSignRulesGift extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 规则ID
     */
    private String ruleId;
    /**
     * 礼品ID
     */
    private Integer giftId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 礼品
     */
    private MbGift mbGift;
    /**
     * 规则
     */
    private MbSignRules mbSignRules;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setGiftId(Integer giftId) {
        this.giftId = giftId;
    }

    public Integer getGiftId() {
        return giftId;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("ruleId", getRuleId())
                .append("giftId", getGiftId())
                .append("createTime", getCreateTime())
                .toString();
    }

    public MbGift getMbGift() {
        return mbGift;
    }

    public void setMbGift(MbGift mbGift) {
        this.mbGift = mbGift;
    }

    public MbSignRules getMbSignRules() {
        return mbSignRules;
    }

    public void setMbSignRules(MbSignRules mbSignRules) {
        this.mbSignRules = mbSignRules;
    }
}
